package org.wesc.boot.dao.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import org.wesc.boot.dao.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

/**
 * 用户结果模型
 * @author Wesley
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Alias("userResultModel")
public class UserResultModel extends User {

    /**
     * 角色ID
     */
    @ExcelIgnore
    private transient String roleId;

    /**
     * 角色名称
     */
    @ColumnWidth(15)
    @ExcelProperty(value = {"角色"}, index = 1)
    private transient String roleName;

    /**
     * 在线id
     */
    @ExcelIgnore
    private transient String activeId;

}
